package pta3;

import java.util.Scanner;

public class java9_5 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner (System.in);
		
		int n1 = sc.nextInt();
		int n2 =  sc.nextInt();
		
		PersonOverride [] person1 = new PersonOverride[n1];
		PersonOverride [] person2 = new PersonOverride[n2];
		
		for(int i=0; i < n1; i++)
		{
			PersonOverride person = new PersonOverride();
			person1 [i]= person;
			
		}
		for(int j=0; j < n2; j++ ) {
			PersonOverride person = new PersonOverride(sc.next(),sc.nextInt(),sc.hasNextBoolean());
			
			
		}

	}

}
